SRC = $(wildcard *.c)
BIN = $(patsubst %.c,%.o,$(SRC))

CROSS = arm-linux-
CC = $(CROSS)gcc

all: $(BIN)

$(BIN):%:%.c
	$(CC) $^ -o $@

clean:
	rm $(BIN)